package com.sun.service.impl;

import com.sun.entity.Cron;
import com.sun.mapper.CronMapper;
import com.sun.service.ICronService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 清风
 * @since 2022-03-30
 */
@Service
public class CronServiceImpl extends ServiceImpl<CronMapper, Cron> implements ICronService {
    @Autowired
    private CronMapper cronMapper;

    @Override
    public List<Cron> getFirstName() throws Exception {
        return cronMapper.selectList(null);
    }
}
